package com.x.erp.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@MappingTable(tableName = "ERP_MARKET")
public class Market extends BaseObject {

	private static final long serialVersionUID = 5973321228708181361L;

	@MappingColumn(columnName = "MARKET_ID", columnPk = true, columnLength = 32)
	private String marketId;

	@MappingColumn(columnName = "MARKET_PARENT_ID")
	private String marketParentId;

	@MappingColumn(columnName = "MARKET_CODE")
	private String marketCode;

	@MappingColumn(columnName = "MARKET_LOGO")
	private String marketLogo;
	
	@MappingColumn(columnName = "MARKET_NAME")
	private String marketName;

	@MappingColumn(columnName = "MARKET_SHORT_NAME")
	private String marketShortName;

	@MappingColumn(columnName = "MARKET_MOBILE")
	private String marketMobile;

	@MappingColumn(columnName = "MARKET_AREA")
	private Integer marketArea;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@MappingColumn(columnName = "MARKET_CREATE_TIME")
	private Date marketCreateTime;

	@MappingColumn(columnName = "MARKET_UPDATE_TIME")
	private Date marketUpdateTime;

	@MappingColumn(columnName = "CITY_ID")
	private String cityId;

	@MappingTable(tableName = "BASE_CITY")
	private City city;

	@MappingColumn(columnName = "PROVINCE_ID")
	private String provinceId;

	@MappingTable(tableName = "BASE_PROVINCE")
	private Province province;

	@MappingColumn(columnName = "MARKET_ADDRESS")
	private String marketAddress;

	@MappingColumn(columnName = "MARKET_LAT")
	private String marketLat;

	@MappingColumn(columnName = "MARKET_LNG")
	private String marketLng;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date searchStartTime;// 车辆入库状态

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date searchEndTime;// 车辆入库状态

	public String getMarketId() {
		return marketId;
	}

	public void setMarketId(String marketId) {
		this.marketId = marketId;
	}

	public String getMarketParentId() {
		return marketParentId;
	}

	public void setMarketParentId(String marketParentId) {
		this.marketParentId = marketParentId;
	}

	public String getMarketLogo() {
		return marketLogo;
	}

	public void setMarketLogo(String marketLogo) {
		this.marketLogo = marketLogo;
	}

	public String getMarketCode() {
		return marketCode;
	}

	public void setMarketCode(String marketCode) {
		this.marketCode = marketCode;
	}

	public String getMarketName() {
		return marketName;
	}

	public void setMarketName(String marketName) {
		this.marketName = marketName;
	}

	public String getMarketShortName() {
		return marketShortName;
	}

	public void setMarketShortName(String marketShortName) {
		this.marketShortName = marketShortName;
	}

	public String getMarketMobile() {
		return marketMobile;
	}

	public void setMarketMobile(String marketMobile) {
		this.marketMobile = marketMobile;
	}

	public Integer getMarketArea() {
		return marketArea;
	}

	public void setMarketArea(Integer marketArea) {
		this.marketArea = marketArea;
	}

	public Date getMarketCreateTime() {
		return marketCreateTime;
	}

	public void setMarketCreateTime(Date marketCreateTime) {
		this.marketCreateTime = marketCreateTime;
	}

	public Date getMarketUpdateTime() {
		return marketUpdateTime;
	}

	public void setMarketUpdateTime(Date marketUpdateTime) {
		this.marketUpdateTime = marketUpdateTime;
	}

	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}

	public Province getProvince() {
		return province;
	}

	public void setProvince(Province province) {
		this.province = province;
	}

	public String getMarketAddress() {
		return marketAddress;
	}

	public void setMarketAddress(String marketAddress) {
		this.marketAddress = marketAddress;
	}

	public String getMarketLat() {
		return marketLat;
	}

	public void setMarketLat(String marketLat) {
		this.marketLat = marketLat;
	}

	public String getMarketLng() {
		return marketLng;
	}

	public void setMarketLng(String marketLng) {
		this.marketLng = marketLng;
	}

	public Date getSearchStartTime() {
		return searchStartTime;
	}

	public void setSearchStartTime(Date searchStartTime) {
		this.searchStartTime = searchStartTime;
	}

	public Date getSearchEndTime() {
		return searchEndTime;
	}

	public void setSearchEndTime(Date searchEndTime) {
		this.searchEndTime = searchEndTime;
	}
}
